﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NearForums.Validation;

namespace NearForums
{
    public class TopicType:Entity
    {
        public TopicType()
        {
           
        }

        public TopicType(int forumId, string name)
            : this()
        {
            this.Forum = new Forum();
            this.Forum.Id = forumId;
            this.TypeName = name;
        }

        [RequireField]
        public int TypeID
        {
            get;
            set;
        }

        [RequireField]
        public string TypeName
        {
            get;
            set;
        }

        public string TypeShortName
        {
            get;
            set;
        }

        [RequireField]
        public Forum Forum
        {
            get;
            set;
        }
    }
}
